import request from "@/utlis/request";

enum API {
  UPLOADFILE_URL = "/files/upload",
}

export const uploadFile = async (data: any) => {
  return request.post<any, any>(API.UPLOADFILE_URL, data, {
    headers: { "Content-Type": "multipart/form-data" },
  });
};
